/**
 * 创建连接桩组
 */
export const basicPorts = {
  groups: {
    left: {
      position: 'left',
      attrs: {
        circle: {
          r: 6,
          magnet: true,
          stroke: '#31d0c6',
          strokeWidth: 2,
          fill: '#fff',
        },
      },
    },
    right: {
      position: 'right',
      attrs: {
        circle: {
          r: 6,
          magnet: true,
          stroke: '#31d0c6',
          strokeWidth: 2,
          fill: '#fff',
        },
      },
    },
  },
  items: [
    {
      id: 'port1',
      group: 'left',
    },
    {
      id: 'port2',
      group: 'right',
    },
  ],
}

/** 虚线样式 */
export const dashLine = {
  stroke: '#979797',
  strokeWidth: 1,
  strokeDasharray: 4,
  targetMarker: {
      name: 'block',
      size: 8,
  },
};